示例#1
0
 /**
  * Update admin editor for a specific product via ajax on page enter
  *
  *@return void
  */
 function postUpdateAdminEditor()
 {
     $table = Input::get('table');
     $id = Input::get('id');
     $adminID = Input::get('admin_id');
     $editor = AdminModel::checkAdminEditor($table, $id);
     if ($editor == 0) {
         AdminModel::updateProductAdminEditor($table, $id, $adminID);
     }
 }