Image view error

image view not shows image in list on click it expands the image




Hi @hereabdulla,

Is there any error in browser’s console ? can you please share the console log ?

Thanks, Makarand

I dont whether this or not

unreachable code after return statement libs.min.js:254:12432
unreachable code after return statement desk.min.js:7489:1
unreachable code after return statement desk.min.js:10206:1
unreachable code after return statement desk.min.js:7489:1
unreachable code after return statement desk.min.js:10206:1
unreachable code after return statement erpnext.min.js:2368:2

Hi @hereabdulla,

I have checked the issue, The image is not showing up on Image View because It’s not able to find the image field from Employee Doctype as the field is not included in employee_list.js file.

This is easy to fix, just add the image in add_fields list. please refere to employee_list.js and item_list.js

Thanks, Makarand

Hi Makarand,

Would you have a suggestion, how to resove the same issue in (suppliers) contact as discussed before in the employee file? Though the image file is shown when clicked on the attachement, it does not show in the image field?

I checked the same function in the employee and customer contacts, however there the image “sticks” to the entry!

Thanks,
Gerard

@Gerard,

for supplier find the supplier_list.js and add the image in add_fields.

Thannks, Makarand