consiglionazionaledellericerche / cool-jconon

Online application system for recruitment of staff and other types of employment and training of the National Research Council of Italy.
https://selezionionline.cnr.it
GNU Affero General Public License v3.0
19 stars 19 forks source link

[4.10.2] - State for exclusions and mail address is not correctly set when candidate is excluded by RdP #36

Closed duiliol closed 2 years ago

duiliol commented 2 years ago

Upon excluding a candidate from an RdP user, after uploading the attachment, the candidate is effectively excluded.

image

However, the corresponding exclusion communication (Esclusioni-Visualizza) does not have a status or a mail address set:

image

Additionally, looking at candidate information from "Visualizza" command shows address and telephone number from the candidate and email address of the RdP who excluded the candidate:

image

duiliol commented 2 years ago

Solution may be similar to the one in commit 40e13331100da60ec64d7ff67f4fc923e8bd79a7 "Add state for manually upload communication and convocation" of 9/11/2021, which would mean changing the data array (now empty) at main.get.js, line 620, within the call to allegaDocumentoAllaDomanda associated to operation Escludi similarly to what was done in the above-mentioned commit for Comunicazioni and Convocazioni:

dropdowns['<i class="icon-arrow-down"></i> Escludi'] = function () {
                    allegaDocumentoAllaDomanda('D:jconon_esclusione:attachment',
                      el['cmis:objectId'], [
                      {name:'jconon_comunicazione:stato', value:'GENERATO'},
                      {name:'jconon_attachment:user', value:el['jconon_application:user']},
                      {name:'jconon_comunicazione:email', value:el['jconon_application:email_comunicazioni']},
                      {name:'jconon_comunicazione:email_pec', value:el['jconon_application:email_pec_comunicazioni']},
                      {name:'aclCoordinatorRdP', value: 'GROUP_' + el.relationships.parent[0]['jconon_call:rdp']}], ...

I'm writing here my hypothetical solution since I'm currently running the template version of the project and for this reason I cannot test it.

mspasiano commented 2 years ago

Available on version 4.10.6