Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1175235
D95.id229.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, Oct 3, 11:51 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sat, Oct 4, 11:51 PM (22 h, 6 m)
Engine
blob
Format
Raw Data
Handle
762126
Attached To
D95: INP-1446 - Ignore draft page revisions, when content revision control is turned off
D95.id229.diff
View Options
Index: core/units/helpers/page_helper.php
===================================================================
--- core/units/helpers/page_helper.php
+++ core/units/helpers/page_helper.php
@@ -177,8 +177,10 @@
$editing_mode = $this->Application->GetVar('editing_mode'); // not in a EDITING_MODE constant, while in admin console
$revision_clause = $table_name . 'RevisionNumber = ' . $live_revision_number . ' AND ' . $table_name . 'IsDraft = 0';
- if ( $this->Application->GetVar('preview') || $editing_mode == EDITING_MODE_CONTENT ) {
- $revision_clause = '(' . $table_name . 'CreatedById = ' . $user_id . ' AND ' . $table_name . 'IsDraft = 1) OR (' . $revision_clause . ')';
+ if ( $this->Application->ConfigValue('EnablePageContentRevisionControl') ) {
+ if ( $this->Application->GetVar('preview') || $editing_mode == EDITING_MODE_CONTENT ) {
+ $revision_clause = '(' . $table_name . 'CreatedById = ' . $user_id . ' AND ' . $table_name . 'IsDraft = 1) OR (' . $revision_clause . ')';
+ }
}
}
Event Timeline
Log In to Comment