Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046609
D362.id969.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jun 28, 9:00 PM
Size
749 B
Mime Type
text/x-diff
Expires
Sun, Jun 29, 9:00 PM (4 h, 38 m)
Engine
blob
Format
Raw Data
Handle
676625
Attached To
D362: INP-1765 - Use table alias, when creating calculated fields for catalog items
D362.id969.diff
View Options
Index: branches/5.2.x/core/kernel/db/cat_event_handler.php
===================================================================
--- branches/5.2.x/core/kernel/db/cat_event_handler.php
+++ branches/5.2.x/core/kernel/db/cat_event_handler.php
@@ -771,7 +771,10 @@
protected function prepareObject(&$object, kEvent $event)
{
$this->prepareItemStatuses($event);
- $object->addCalculatedField('CachedNavbar', 'l' . $this->Application->GetVar('m_lang') . '_CachedNavbar');
+ $object->addCalculatedField(
+ 'CachedNavbar',
+ TABLE_PREFIX . 'Categories.l' . $this->Application->GetVar('m_lang') . '_CachedNavbar'
+ );
if ( $event->Special == 'export' || $event->Special == 'import' ) {
/** @var kCatDBItemExportHelper $export_helper */
Event Timeline
Log In to Comment