Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002337Openbravo ERPB. User interfacepublic2007-11-30 14:012008-06-12 09:43
gorkaion 
alostale 
normalminoralways
closedfixed 
5
 
2.40alpha-r2 
No
Core
No
0002337: Default image for records without image too small
Environment:
Openbravo 2.35

When a record, that is already saved, doesn't have any image assigned the application puts a blank.png image of 1px side. This image is not visible and too small so is nearly impossible to open the image selector.

When a new record is inserted no image is shown and the word 'image' appears so it is easier to open the selector.

The image control should put a bigger visible image when no image is selected to be able to open the selector.

Use the Product window in Master Data Management as example.
No tags attached.
Issue History

Notes
(0005926)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1841691 [^]
(0002759)
dbaz   
2008-05-19 12:43   
(edited on: 2008-06-12 09:23)
Logged In: YES
user_id=1500873
Originator: NO

I have commited on revision 4329 the necessary material.

When there is no image or when you are editing a new field, the apparience should be the same.

The correct html code should be (adding style="cursor: pointer;" to <TABLE> and class="Image_NotAvailable_medium" to <IMG>)

<DIV id="AD_Image_ID_inp">
  <INPUT type="hidden" name="inpadImageId" id="AD_Image_ID" value="" onchange="logChanges(this);return true;"></INPUT>
  <TABLE id="buttonAD_Image_ID" onclick="openSearch(null, null, 'file://///vmkubuntu/tomcat/webapps/openbravo/info/ImageInfo_FS.html', [^] null, false, 'frmMain', 'inpadImageId', 'inpadImageId_R', document.frmMain.inpadImageId.value);return false;" onmouseout="window.status='';return true;" style="cursor: pointer;" onmouseover="window.status='Image';return true;">
    <TR>
      <TD><IMG src="file://///vmkubuntu/tomcat/webapps/openbravo/web/images/blank.gif" [^] class="Image_NotAvailable_medium" border="0" alt="Image" id="AD_Image_ID_R" title="Image" name="inpadImageId_R"></IMG></TD>
    </TR>
  </TABLE>
  
</DIV>


NOTE That class="Image_NotAvailable_medium" only should appear when the register is a new one or is one without associated image. The style="cursor: pointer;" should appears always
(0002760)
alostale   
2008-05-19 17:11   
(edited on: 2008-06-12 09:23)
Logged In: YES
user_id=1500722
Originator: NO

r4339.