Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1245425
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
Fri, Nov 21, 7:01 AM
Size
749 B
Mime Type
text/x-diff
Expires
Sat, Nov 22, 7:01 AM (22 h, 8 s)
Engine
blob
Format
Raw Data
Handle
809862
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