Skip to content
Snippets Groups Projects
Verified Commit a8e58ca4 authored by Damien's avatar Damien
Browse files

FEAT #9685 ListInstances model item_id

parent e3d3eb0c
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,8 @@ class ListInstanceHistoryDetailModel
public static function create(array $args)
{
ValidatorModel::notEmpty($args, ['listinstance_history_id', 'resId', 'item_id', 'item_type', 'item_mode', 'added_by_user', 'added_by_entity', 'difflist_type']);
ValidatorModel::intVal($args, ['listinstance_history_id', 'resId', 'item_id', 'sequence']);
ValidatorModel::stringType($args, ['item_type', 'item_mode', 'added_by_user', 'added_by_entity', 'difflist_type', 'process_date', 'process_comment']);
ValidatorModel::intVal($args, ['listinstance_history_id', 'resId', 'sequence']);
ValidatorModel::stringType($args, ['item_type', 'item_id', 'item_mode', 'added_by_user', 'added_by_entity', 'difflist_type', 'process_date', 'process_comment']);
DatabaseModel::insert([
'table' => 'listinstance_history_details',
......
......@@ -61,8 +61,8 @@ abstract class ListInstanceModelAbstract
public static function create(array $args)
{
ValidatorModel::notEmpty($args, ['res_id', 'item_id', 'item_type', 'item_mode', 'added_by_user', 'added_by_entity', 'difflist_type']);
ValidatorModel::intVal($args, ['res_id', 'item_id', 'sequence']);
ValidatorModel::stringType($args, ['item_type', 'item_mode', 'added_by_user', 'added_by_entity', 'difflist_type', 'process_date', 'process_comment']);
ValidatorModel::intVal($args, ['res_id', 'sequence']);
ValidatorModel::stringType($args, ['item_type', 'item_id', 'item_mode', 'added_by_user', 'added_by_entity', 'difflist_type', 'process_date', 'process_comment']);
DatabaseModel::insert([
'table' => 'listinstance',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment