-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
6.0.0beta1
1. Create two templates T1 and T2;
2. create a host H1 and add host to both templates;
3. go to T2 and try to link T1;
4. obviously it will not be possible, but additionally to normal error message, we can also see errors on pages:
array_flip(): Can only flip STRING and INTEGER values! [templates.php:272 -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CTemplate->update() -> CTemplate->validateUpdate() -> CHostBase->checkTemplatesLinks() -> CHostBase->checkDoubleLinkageNew() -> DB::select() -> DB::makeSql() -> DB::createSelectQueryParts() -> DB::applyQueryFilterOptions() -> dbConditionId() -> dbConditionInt() -> array_flip() -> CConfigFile->{closure}() in include\db.inc.php:631] Undefined index: [templates.php:272 -> CApiWrapper->__call() -> CFrontendApiWrapper->callMethod() -> CApiWrapper->callMethod() -> CFrontendApiWrapper->callClientMethod() -> CLocalApiClient->callMethod() -> CTemplate->update() -> CTemplate->validateUpdate() -> CHostBase->checkTemplatesLinks() -> CHostBase->checkDoubleLinkageNew() -> CConfigFile->{closure}() in include\classes\api\services\CHostBase.php:523]