Fix PlTableEditor: don't require values for field which were not displayed.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 15 May 2011 15:27:26 +0000 (17:27 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 15 May 2011 15:29:47 +0000 (17:29 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/pltableeditor.php

index c114a02..208a92d 100644 (file)
@@ -361,7 +361,7 @@ class PLTableEditor
                     } elseif ($descr['Type'] == 'ip_address') {
                         $val = ip2long($val);
                     }
-                } else {
+                } elseif ($descr['display']) {
                     $cancel = true;
                     $page->trigError("Il manque le champ ".$field);
                 }