Code

Post improivements
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 Jan 2006 07:49:54 +0000 (07:49 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 25 Jan 2006 07:49:54 +0000 (07:49 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2567 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_glpiAccount.inc
plugins/admin/systems/glpi.tpl

index 0f11882cd646b87c9f98bce03a5db07824833a22..c6d3197b41bc4dd0f4016c60152874cc70a4a864 100644 (file)
@@ -601,6 +601,9 @@ class glpiAccount extends plugin
   /* Save data to object */
   function save_object()
   {
+    if(!isset($_POST['glpi_tpl_posted'])) {
+      return ;
+    }
     plugin::save_object();
     foreach($this->attributes as $attrs){
       if(isset($_POST[$attrs])){
index 99e72ba8ea7158ef55967d92c6615ba7559601fb..70e87c5c5a2cf292c08a54c650ff561681774795 100644 (file)
                </td>
        </tr>
 </table>
+<input type="hidden" name="glpi_tpl_posted" value="1">