17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1474 Views |
-
Patch: Fix 'Undefined variable: js' error after Page Reorganise

17 May 2007 at 9:08am
I get this error when I click the "Reorganise" tab and move a page to be the child of another page.
Error in Ajax evaluator on line 974: invalid flag after regular expression
Notice: Undefined variable: js in /var/www/silverstripe/cms/code/LeftAndMain.php on line 577
if( $('sitetree').selected && $('sitetree').selected[0]){ var idx = $('sitetree').selected[0].getIdx(); if(idx){ $('Form_EditForm').getPageFromServer(idx); } } $('sitetree').setNodeTitle(5, "New Page1") statusMessage('saved', 'good');This 1 line change initializes the $js variable to prevent this error:
http://www.elijahlofgren.com/silverstripe/patches/Fix-undefined-var-js-silverstripe.2.0.DailyBuild.2007-05-16.patchLet me know if you'd rather I just paste these 1 line patches instead of linking them. I don't want to be too much of a bother with these minor undefined variable fixes. ;)
- Elijah
-
Re: Patch: Fix 'Undefined variable: js' error after Page Reorganise

28 May 2007 at 1:59pm
Applied, thanks again! Linking to the patches is good, makes them super easy to apply
| 1474 Views | ||
|
Page:
1
|
Go to Top |


