Merged in luisfernandosl/processmaker/PM-808 (pull request #1201)

PM 808 "Por cada  primary key se muestra un..." SOLVED
This commit is contained in:
Julio Cesar Laura Avendaño
2014-11-17 17:05:55 -04:00

View File

@@ -124,8 +124,12 @@ Ext.onReady(function(){
_fields.push({name: _idProperty});
var countFieldsRequired = 0;
for (i=0;i<tableDef.FIELDS.length; i++) {
if (tableDef.FIELDS[i].FLD_KEY==1) {
if (tableDef.FIELDS[i].FLD_KEY == 1 && tableDef.FIELDS[i].FLD_AUTO_INCREMENT != 1) {
countFieldsRequired = countFieldsRequired + 1;
blank=false;
} else{
blank=true;
@@ -262,7 +266,7 @@ Ext.onReady(function(){
showTooltip: function (msg)
{
if (flagShowMessageError == 1) {
Ext.msgBoxSlider.msgTopCenter("error", _("ID_ERROR"), msg, 3);
Ext.msgBoxSlider.msgTopCenter("error", _("ID_ERROR"), _("ID_FIELD_REQUIRED2", countFieldsRequired), 3);
flagShowMessageError = 0;
}
},