From 4fe01ebbfdd827da1fcbb8b9b1652bf96c91a6c2 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 30 May 2016 19:25:27 +0200 Subject: [PATCH] take out old code --- op/op.UpdateDocument.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/op/op.UpdateDocument.php b/op/op.UpdateDocument.php index 7072bca65..41b8417a7 100644 --- a/op/op.UpdateDocument.php +++ b/op/op.UpdateDocument.php @@ -249,21 +249,6 @@ if ($_FILES['userfile']['error'] == 0) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured")); } } - /* - if($attrdef->getRegex()) { - if(!preg_match($attrdef->getRegex(), $attribute)) { - UI::exitError(getMLText("document_title", array("documentname" => $folder->getName())),getMLText("attr_no_regex_match")); - } - } - if(is_array($attribute)) { - if($attrdef->getMinValues() > count($attribute)) { - UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("attr_min_values", array("attrname"=>$attrdef->getName()))); - } - if($attrdef->getMaxValues() && $attrdef->getMaxValues() < count($attribute)) { - UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("attr_max_values", array("attrname"=>$attrdef->getName()))); - } - } - */ } elseif($attrdef->getMinValues() > 0) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("attr_min_values", array("attrname"=>$attrdef->getName()))); }