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