ImportSource: flip fetch order to stay close to...
...former one
This commit is contained in:
parent
7c18c0b614
commit
70b3e966da
|
@ -168,13 +168,16 @@ class ImportSource extends DbObjectWithSettings
|
||||||
public function fetchRowModifiers()
|
public function fetchRowModifiers()
|
||||||
{
|
{
|
||||||
$db = $this->getDb();
|
$db = $this->getDb();
|
||||||
return ImportRowModifier::loadAll(
|
|
||||||
|
$modifiers = ImportRowModifier::loadAll(
|
||||||
$this->getConnection(),
|
$this->getConnection(),
|
||||||
$db->select()
|
$db->select()
|
||||||
->from('import_row_modifier')
|
->from('import_row_modifier')
|
||||||
->where('source_id = ?', $this->id)
|
->where('source_id = ?', $this->id)
|
||||||
->order('priority DESC')
|
->order('priority ASC')
|
||||||
);
|
);
|
||||||
|
|
||||||
|
return $modifiers;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function prepareRowModifiers()
|
protected function prepareRowModifiers()
|
||||||
|
@ -196,6 +199,7 @@ class ImportSource extends DbObjectWithSettings
|
||||||
{
|
{
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach ($this->getRowModifiers() as $rowMods) {
|
foreach ($this->getRowModifiers() as $rowMods) {
|
||||||
|
/** @var PropertyModifierHook $mod */
|
||||||
foreach ($rowMods as $mod) {
|
foreach ($rowMods as $mod) {
|
||||||
if ($mod->hasTargetProperty()) {
|
if ($mod->hasTargetProperty()) {
|
||||||
$list[$mod->getTargetProperty()] = true;
|
$list[$mod->getTargetProperty()] = true;
|
||||||
|
|
Loading…
Reference in New Issue