[MAGNOLIA-2996] AdminCentral: it's not possible to move a page under another page with a common beginning in name Created: 08/Jan/10  Updated: 04/Aug/15  Resolved: 04/Aug/15

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 4.0.3, 4.1.1, 4.1.2, 4.1.3, 4.2, 4.2.1, 4.2.2, 4.1.4, 4.2.3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sebastian Frick Assignee: Philipp Bärfuss
Resolution: Outdated Votes: 3
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mgnl Demo
Firefox 3.5.3, Safari 4


Attachments: PNG File bug.png     PNG File bug2.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Create two nodes: /untitled, /untitled0

untitled can't be moved unto untitled0
Strangely enough, it works the other way around (can move untitled0 into untitled)



 Comments   
Comment by Frank Sommer [ 10/Jul/13 ]

This issue happens in current Magnolia 4.5.9, too.

The problem is located in AdminCentral JS. See the following snippet. The if conditional should compare by an equals instead of an indexOf.

if (this.clipboardMethod==0 && id.indexOf(this.clipboardNode.id)==0 && pasteType!=0){
  //move into itself is not possible
  mgnlAlert(mgnlMessages.get('tree.pastenode.itself.js'));
} 
Comment by Michael Mühlebach [ 04/Aug/15 ]

We're closing this issue as outdated as it was reported for 4.4.x or earlier versions which are no longer supported. Don't hesitate to reopen or create a new ticket in case this is still relevant and you'll experience it on 4.5.x or later versions.

Generated at Mon Feb 12 03:42:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.