Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F727136
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
Mon, Jan 6, 7:24 AM
Size
738 B
Mime Type
text/x-diff
Expires
Tue, Jan 7, 7:24 AM (3 d, 12 m ago)
Engine
blob
Format
Raw Data
Handle
536812
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