Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726856
D257.id609.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
Mon, Jan 6, 1:54 AM
Size
837 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 1:54 AM (2 d, 12 h ago)
Engine
blob
Format
Raw Data
Handle
536946
Attached To
D257: INP-1594 - Generate/check category filename after page protection code was executed
D257.id609.diff
View Options
Index: core/units/categories/categories_event_handler.php
===================================================================
--- core/units/categories/categories_event_handler.php
+++ core/units/categories/categories_event_handler.php
@@ -1820,9 +1820,6 @@
$object = $event->getObject();
/* @var $object CategoriesItem */
- $object->checkFilename();
- $object->generateFilename();
-
$now = adodb_mktime();
if ( !$this->Application->isDebugMode() && strpos($event->Special, 'rebuild') === false ) {
@@ -1837,6 +1834,9 @@
}
}
+ $object->checkFilename();
+ $object->generateFilename();
+
// Don't allow creating records on behalf of another user.
if ( !$this->Application->isAdminUser && !defined('CRON') ) {
$object->SetDBField('CreatedById', $object->GetOriginalField('CreatedById'));
Event Timeline
Log In to Comment