Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1181790
D96.id.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
Tue, Oct 14, 2:27 AM
Size
738 B
Mime Type
text/x-diff
Expires
Wed, Oct 15, 2:27 AM (1 h, 1 m)
Engine
blob
Format
Raw Data
Handle
767281
Attached To
D96: INP-1449 - Recalculate priorities, when new item is added
D96.id.diff
View Options
Index: branches/5.2.x/core/units/helpers/priority_helper.php
===================================================================
--- branches/5.2.x/core/units/helpers/priority_helper.php
+++ branches/5.2.x/core/units/helpers/priority_helper.php
@@ -91,13 +91,6 @@
return Array ();
}
- list ($id, $pair) = each($changes);
-
- if ( !$id && !isset($pair['constrain']) ) {
- // adding new item without constrain -> priority stays the same
- return Array ($id);
- }
-
$id_field = $this->Application->getUnitOption($event->Prefix, 'IDField');
$table_name = $this->Application->getUnitOption($event->Prefix, 'TableName');
@@ -245,4 +238,4 @@
$dummy->Update();
}
}
- }
\ No newline at end of file
+ }
Event Timeline
Log In to Comment