ALF-25: Fix for condition

This commit is contained in:
SatoshiDark
2016-07-14 12:30:17 -04:00
parent 44756feb18
commit baf7aa246c

View File

@@ -313,8 +313,8 @@ Ext.onReady(function(){
}
//Checks all disabled options and removes from new options by pmTypeProject
var io = arrayMenuNewOption.length;
for (io; io-=1;) {
var io = arrayMenuNewOption.length - 1;
for (io; io >= 0; io -= 1) {
if (disabledNewProjectOptions[arrayMenuNewOption[io].pmTypeProject]) {
arrayMenuNewOption.splice(io, 1);
}