Page 1 of 1

SOLVED Issue with showing Profile Picture when changing

Posted: 26 Jul 2016, 10:30
by manuel
(I'm sorry but I don't know where to put this)

If you want to change/edit the candidates profile picture in OpenCats it didn't show the current picture. Just a empty square.
The changes you have to make are minor.

You have to edit the file: ...\modules\candidates\CreateImageAttachmentModal.tpl

At line 12 and 13 you wil find:

<a href="attachments/<?php $this->_($attachmentsData['attachmentID']) ?>/<?php $this->_($attachmentsData['storedFilename']) ?>">
<img src="attachments/<?php $this->_($attachmentsData['attachmentID']) ?>/<?php $this->_($attachmentsData['storedFilename']) ?>" border="0" width="165">
</a>


Change : attachmentID into directoryName

It will look like this

<a href="attachments/<?php $this->_($attachmentsData['directoryName']) ?>/<?php $this->_($attachmentsData['storedFilename']) ?>">
<img src="attachments/<?php $this->_($attachmentsData['directoryName']) ?>/<?php $this->_($attachmentsData['storedFilename']) ?>" border="0" width="165">
</a>


Save the file and the problem is solved.

Happy recruiting

Re: SOLVED Issue with showing Profile Picture when changing

Posted: 26 Jul 2016, 10:46
by RussH
Hi Manuel,

do you want to propose a commit on github with this fix?

Re: SOLVED Issue with showing Profile Picture when changing

Posted: 26 Jul 2016, 15:29
by manuel
Check. Couldn't find it anymore. :?

Re: SOLVED Issue with showing Profile Picture when changing

Posted: 26 Jul 2016, 16:47
by RussH
I see you've posted this as Issue #94;

https://github.com/opencats/OpenCATS/issues/94