mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Skip extra var validation if manually inserted/updated
This commit is contained in:
parent
d0f0d7205d
commit
52c573fdba
1 changed files with 14 additions and 8 deletions
|
|
@ -843,11 +843,14 @@ class DocumentController extends Document
|
|||
}
|
||||
else
|
||||
{
|
||||
$ev_output = $extra_item->validate($value);
|
||||
if ($ev_output && !$output->toBool())
|
||||
if (!$manual_inserted)
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $ev_output;
|
||||
$ev_output = $extra_item->validate($value);
|
||||
if ($ev_output && !$output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $ev_output;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle extra vars that support file upload.
|
||||
|
|
@ -1224,11 +1227,14 @@ class DocumentController extends Document
|
|||
else
|
||||
{
|
||||
// Check for required and strict values.
|
||||
$ev_output = $extra_item->validate($value);
|
||||
if ($ev_output && !$ev_output->toBool())
|
||||
if (!$manual_updated)
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $ev_output;
|
||||
$ev_output = $extra_item->validate($value);
|
||||
if ($ev_output && !$ev_output->toBool())
|
||||
{
|
||||
$oDB->rollback();
|
||||
return $ev_output;
|
||||
}
|
||||
}
|
||||
|
||||
// Handle extra vars that support file upload.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue