mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-22 05:14:25 +02:00
DbRepository: Relax check in providesValueConversion()
Would otherwise conflict when tables are joined in. refs #8826
This commit is contained in:
parent
cc779024fe
commit
c8e8a39f5a
@ -402,15 +402,19 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return whether this repository is capable of converting values for the given table
|
* Return whether this repository is capable of converting values
|
||||||
|
*
|
||||||
|
* This does not check whether any conversion for the given table is available, as it may be possible
|
||||||
|
* that columns from another table where joined in which would otherwise not being converted.
|
||||||
*
|
*
|
||||||
* @param array|string $table
|
* @param array|string $table
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function providesValueConversion($table)
|
public function providesValueConversion($_)
|
||||||
{
|
{
|
||||||
return parent::providesValueConversion($this->removeTablePrefix($this->clearTableAlias($table)));
|
$conversionRules = $this->getConversionRules();
|
||||||
|
return !empty($conversionRules);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user