⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Strange Update/Save Behaviour - Both Fail



ezgoen

ezgoen
  • profile picture
  • Member

Posted 21 March 2013 - 03:58 AM

Hi

 

Noticed this werdness

 

 

Hit "Update Changes" or "Update and go back to the list"

throbber sits there spinning and no records actually get saved or updated.

 

This is repeatable (for me anyhow)

I started off using my own database - but I can reproduce the problem with the example database

 

So.. modifying controllers/examples.php >>

 

// create copy of customers_management

// call it advertisement_manager  - I tried this with various variation : advert ..etc

function advertisement_manager()
    {
            $crud = new grocery_CRUD();

            $crud->set_table('customers');
            $crud->columns('customerName','contactLastName','phone','city','country','salesRepEmployeeNumber','creditLimit');
            $crud->display_as('salesRepEmployeeNumber','from Employeer')
                 ->display_as('customerName','Name')
                 ->display_as('contactLastName','Last Name');
            $crud->set_subject('Customer');
            $crud->set_relation('salesRepEmployeeNumber','employees','lastName');
            
            $output = $crud->render();
            
            $this->_example_output($output);
    }    
    //this is the original so you can compare
    function customers_management()
    {
            $crud = new grocery_CRUD();

            $crud->set_table('customers');
            $crud->columns('customerName','contactLastName','phone','city','country','salesRepEmployeeNumber','creditLimit');
            $crud->display_as('salesRepEmployeeNumber','from Employeer')
                 ->display_as('customerName','Name')
                 ->display_as('contactLastName','Last Name');
            $crud->set_subject('Customer');
            $crud->set_relation('salesRepEmployeeNumber','employees','lastName');
            
            $output = $crud->render();
            
            $this->_example_output($output);
    }    
  

 

now change views/example.php >>

<? // add the following line for the test ?>

<a href='<?php echo site_url('examples/advertisement_manager')?>'>Adverts</a> |

 

 

Now use the new Adverts menu (remember - its the same code under the hood)

edit a record and then try to save it

 

firebug hints at a jquery problem - but I reckon it must be a namespace issue - possibly jquery related but not specific to.

 

I dont have the time to delve too deeply into this and as I've found the workaround is "Dont Use the name:  Advertisement_manager"

 

Hope this is reproducable by others out there or I'm gonna have to go have a lie down.

 

 

Cheers, and thanks for the library!

 

 

Ez


ezgoen

ezgoen
  • profile picture
  • Member

Posted 22 March 2013 - 02:43 AM

Hi All - I forgot to say -

 

this is under firefox 19.0.2 win

 

Comes to  mind the the term advertising *might* possibly be something an ad-blocking script is looking for.

Even so...

 

Anyone wlse able to reproduce this ??

 

 

Cheers

 

Ez


ezgoen

ezgoen
  • profile picture
  • Member

Posted 25 March 2013 - 02:21 AM

Alrighty - close this bug report!

 

I fugure it out

 

Firstly - I should have posted this to the codeigniter form - sorry

and secondly - I found the cause of the problem - adblock plus  :  https://adblockplus.org/en/firefox

 

My bad folks , but watch you dont get snared with this kind of problem - I imagine other content filters may also cause a similar problem.

 

 

Cheers Ez