Merge pull request #24108 from inovea-conseil/FIX_taskinevent

FIX select for task in event card
This commit is contained in:
Laurent Destailleur 2023-03-03 12:02:20 +01:00 committed by GitHub
commit abc8004896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1257,7 +1257,7 @@ if ($action == 'create') {
print "\n".'<script type="text/javascript">';
print '$(document).ready(function () {
$("#projectid").change(function () {
var url = "'.DOL_URL_ROOT.'/projet/ajax/projects.php?mode=gettasks&socid="+$("#projectid").val()+"&projectid="+$("#projectid").val();
var url = "'.DOL_URL_ROOT.'/projet/ajax/projects.php?mode=gettasks&socid="+$("#search_socid").val()+"&projectid="+$("#projectid").val();
console.log("Call url to get new list of tasks: "+url);
$.get(url, function(data) {
console.log(data);