1. Nikola Trifunović
  2. JToggleColumn

Commits

Nikola Trifunović  committed 0ce3156

Updated readme

  • Participants
  • Parent commits 86559be
  • Branches master

Comments (0)

Files changed (1)

File README.md

View file
  • Ignore whitespace
         {
             // we only allow deletion via POST request
             $model = $this->loadModel($id);
-            $model->$attribute = !$model->$attribute;
+            $model->$attribute = ($model->$attribute==0)?1:0;
             $model->save();
             
             // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser