Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847790
D362.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, Apr 19, 5:45 PM
Size
749 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 5:45 PM (19 m, 53 s)
Engine
blob
Format
Raw Data
Handle
602581
Attached To
D362: INP-1765 - Use table alias, when creating calculated fields for catalog items
D362.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