Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046461
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
Sat, Jun 28, 7:20 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:20 PM (12 h, 33 m)
Engine
blob
Format
Raw Data
Handle
676511
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