Hi everyone, I recently upgraded to version 8.6 and copied some custom files from version 7 into the new version. Naturally I had some problems, but with patience I solved them.
Now I have a problem with the Quotes module.
In version 7.14 I had some customizations in this module.
In detailviewdefs.php there is a reference to a file (customPopup.js), the call occurs, but within this file there is a reference to another file:
...
dialog = $("#dialog-form").dialog({
autoOpen: false,
height: 250,
width: 325,
modal: true,
show: {effect: 'fade', duration: 250},
hide: {effect: 'fade', duration: 500},
buttons: {
"Calculate": function() {
if($('#calPopup').valid()) {
/* Saving Value AJAX call */
$.ajax({
url: 'index.php?module=AOS_Quotes&action=CalFat',
type: 'POST',
dataType: 'JSON',
async: false,
data: $("#calPopup").serialize(),
success: function (response) {
if(response.status=='Success') {
console.log('success ajax call');
dialog.dialog("close");
location.reload();
}
}
});
} //end if
},
Cancel: function() {
dialog.dialog("close");
}
},
open: function (event, ui) {
$('#dialog-form').css('overflow', 'hidden'); //this line does the actual hiding
$('.ui-widget-header').css('background', '#ccc'); //this line does the actual hiding
},
close: function() {
$("#calPopup").trigger("reset");
}
});
dialog.dialog("open");
});
...
the problem seems to be on the line:
url: 'index.php?module=AOS_Quotes&action=CalFat',
through the browser development tools, this message appears:
There is no action with the name: CalFat
CalFat is a file located inside the AOS_Quotes folder
I thought the problem concerned some file that I had forgotten to bring from 7 to 8 which contained the recording of the action, but as it was on 7 it is now on 8.
Can you tell me how to solve it please? it’s important. Thank you.