After I successfully update a record, the insert_success_message lang string is displayed instead of the update_success_message lang string. This happens only when I hit the 'save and go back to list' button. I could use some direction - I've looked at it too long and can't seem to find the problem.
I'm using GC version 1.2.3 with the flexigrid theme and this is my code:
$crud = new grocery_CRUD();
$crud->set_table('users');
$crud->columns('username','first_name','last_name','email','phone','active');
$crud->display_as('first_name','First Name')
->display_as('last_name','Last Name');
$crud->fields('active','username','first_name','last_name','email','phone','signature');
$crud->set_lang_string('insert_success_message','The user data has been successfully added.');
$crud->set_lang_string('update_success_message','The user data has been successfully updated.');
$crud->set_subject('User');
$output = $crud->render();
Thanks for any help.
After successful update - insert_success_message not update_success_message
Started by Twillied, 03 August 2012 - 18:29 PM
- Single Page
Posted 03 August 2012 - 18:29 PM