From: avl Date: Wed, 25 Mar 2009 12:24:30 +0000 (+0200) Subject: reorder ord X-Git-Tag: 0.6~151 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=bce91c7b59d7e7c0eb20cbb5dd89cbff170d1a0d;p=ipf-legacy-orm.git reorder ord --- diff --git a/ipf/orm/record.php b/ipf/orm/record.php index d389b23..295e864 100644 --- a/ipf/orm/record.php +++ b/ipf/orm/record.php @@ -1296,8 +1296,7 @@ abstract class IPF_ORM_Record extends IPF_ORM_Record_Abstract implements Countab return null; } - public function _reorder($ids, $ord_field, $drop_id, $prev_ids){ - $ord = 1; + public function _reorder($ids, $ord_field, $drop_id, $prev_ids, $ord=1){ foreach($ids as $id){ $item = $this->getTable()->find($id); $item[$ord_field] = $ord;