Skip to content

Commit

Permalink
#266 [Session] add: reload fk_contrat also
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jul 31, 2023
1 parent 227412b commit 6ce2aaa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/dolimeet.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions js/modules/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ window.dolimeet.session.reloadField = function() {
contentType: false,
success: function(resp) {
$('.field_fk_project').replaceWith($(resp).find('.field_fk_project'));
$('.field_fk_contrat').replaceWith($(resp).find('.field_fk_contrat'));
},
error: function() {}
});
Expand Down
1 change: 1 addition & 0 deletions view/session/session_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@

if (GETPOST('fk_soc')) {
$object->fields['fk_project']['type'] = 'integer:Project:projet/class/project.class.php:0:(fk_soc:=:' . GETPOST('fk_soc') . ')';
$object->fields['fk_contrat']['type'] = 'integer:Contrat:contrat/class/contrat.class.php:0:(fk_soc:=:' . GETPOST('fk_soc') . ')';
}

if (!empty($fromType)) {
Expand Down

0 comments on commit 6ce2aaa

Please sign in to comment.