mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 21:13:26 +00:00
Deprecate is_grouping in favor of isStory
This commit is contained in:
@@ -119,7 +119,7 @@ abstract class set_abstract implements IteratorAggregate
|
||||
{
|
||||
$n = 0;
|
||||
foreach ($this->elements as $record) {
|
||||
if ($record->is_grouping())
|
||||
if ($record->isStory())
|
||||
$n ++;
|
||||
}
|
||||
|
||||
|
@@ -100,7 +100,7 @@ class set_export extends set_abstract
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($record->is_grouping()) {
|
||||
if ($record->isStory()) {
|
||||
foreach ($record->get_children() as $child_basrec) {
|
||||
$base_id = $child_basrec->get_base_id();
|
||||
$record_id = $child_basrec->get_record_id();
|
||||
|
@@ -128,7 +128,7 @@ class set_selection extends set_abstract
|
||||
} catch (\Exception $e) {
|
||||
continue;
|
||||
}
|
||||
if ($record->is_grouping() && $flatten_groupings === true) {
|
||||
if ($record->isStory() && $flatten_groupings === true) {
|
||||
foreach ($record->get_children() as $rec) {
|
||||
$this->add_element($rec);
|
||||
}
|
||||
|
Reference in New Issue
Block a user