public function Save($pa_options = null)
 {
     if (!($vn_rc = parent::Save(array('loadSubject' => true, 'dontCheckQuickAddAction' => true)))) {
         $this->notification->addNotification(_t('Saved annotation.'), __NOTIFICATION_TYPE_INFO__);
     }
     return $vn_rc;
 }
コード例 #2
0
 public function Save($pa_options = null)
 {
     $vn_rc = parent::Save($pa_options);
     $va_response = $this->getView()->getVar('response');
     if (is_array($va_response) && isset($va_response['id']) && $va_response['id'] > 0) {
         $t_set = Datamodel::load()->getInstance('ca_sets', true);
         $t_set->getDb()->query('UPDATE ca_sets SET user_id=? WHERE set_id=?', $this->getRequest()->getUserID(), $va_response['id']);
     }
     return $vn_rc;
 }