I don't think it was caused by rev. 593024, but I've fixed it in rev. 593753
Thanks, Jacopo pmacdee wrote: > The Owner selector on the New Facility page doesn't appear to work. I used > to set my company to be an internal organization and then I could find it on > a pull down. Now I get no action and the Error Console says: > > Error: document.EditFacilityForm has no properties > Source File: > javascript:call_fieldlookup2(document.EditFacilityForm.ownerPartyId,'LookupPartyName'); > Line: 1 > > the page source has this line > > > href=javascript:call_fieldlookup2(document.EditFacilityForm.ownerPartyId,'LookupPartyName'); > > and there doesn't appear to be corresponding JavaScript for > "EditFacilityForm" . This SVN commit popped up as being related to this > problem. Here is my svn info > svn info > Path: . > URL: http://svn.apache.org/repos/asf/ofbiz/trunk > Repository Root: http://svn.apache.org/repos/asf > Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68 > Revision: 593024 > Node Kind: directory > Schedule: normal > Last Changed Author: jacopoc > Last Changed Rev: 592805 > Last Changed Date: 2007-11-07 08:17:53 -0800 (Wed, 07 Nov 2007) > > > > > > > sichen wrote: >> Author: sichen >> Date: Mon Oct 8 13:49:48 2007 >> New Revision: 582967 >> >> URL: http://svn.apache.org/viewvc?rev=582967&view=rev >> Log: >> removed restriction that only internal organization can be owner parties >> of facilities >> >> Modified: >> >> ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditFacility.bsh >> >> ofbiz/trunk/applications/product/webapp/facility/facility/EditFacility.ftl >> >> Modified: >> ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditFacility.bsh >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditFacility.bsh?rev=582967&r1=582966&r2=582967&view=diff >> ============================================================================== >> --- >> ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditFacility.bsh >> (original) >> +++ >> ofbiz/trunk/applications/product/webapp/facility/WEB-INF/actions/facility/EditFacility.bsh >> Mon Oct 8 13:49:48 2007 >> @@ -44,10 +44,6 @@ >> if (facilityTypes != null) >> context.put("facilityTypes", facilityTypes); >> >> -// possible owners of facilities >> -ownerParties = delegator.findByAndCache("PartyRole", >> UtilMisc.toMap("roleTypeId", "INTERNAL_ORGANIZATIO")); >> -context.put("ownerParties", ownerParties); >> - >> // all possible inventory item types >> inventoryItemTypes = delegator.findAllCache("InventoryItemType", >> UtilMisc.toList("description")); >> context.put("inventoryItemTypes", inventoryItemTypes); >> >> Modified: >> ofbiz/trunk/applications/product/webapp/facility/facility/EditFacility.ftl >> URL: >> http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/facility/facility/EditFacility.ftl?rev=582967&r1=582966&r2=582967&view=diff >> ============================================================================== >> --- >> ofbiz/trunk/applications/product/webapp/facility/facility/EditFacility.ftl >> (original) >> +++ >> ofbiz/trunk/applications/product/webapp/facility/facility/EditFacility.ftl >> Mon Oct 8 13:49:48 2007 >> @@ -22,14 +22,14 @@ >> ${uiLabelMap.ProductFacility} ${facility.facilityName?if_exists} >> [${uiLabelMap.CommonId}:${facilityId?if_exists}] >> <br/> >> <div class="button-bar"> >> - "<@ofbizUrl EditFacility</@ofbizUrl>" >> class="buttontext">${uiLabelMap.ProductNewFacility} >> + "<@ofbizUrl EditFacility</@ofbizUrl>" name="EditFacilityForm" >> class="buttontext">${uiLabelMap.ProductNewFacility} >> <#if facilityId?has_content> >> >> /workeffort/control/month?facilityId=${facilityId}&externalLoginKey=${requestAttributes.externalLoginKey?if_exists} >> ${uiLabelMap.CommonViewCalendar} >> </#if> >> </div> >> >> <#if facility?exists && facilityId?has_content> >> - <form action="<@ofbizUrl>UpdateFacility</@ofbizUrl>" method="post"> >> + <form action="<@ofbizUrl>UpdateFacility</@ofbizUrl>" >> name="EditFaclityForm" method="post"> >> <table class="basic-table" cellspacing='0'> >> <input type="hidden" name="facilityId" value="${facilityId?if_exists}"> >> <tr> >> @@ -60,13 +60,12 @@ >> <tr> >> <td class="label">${uiLabelMap.ProductFacilityOwner}</td> >> <td> >> - <select name="ownerPartyId"> >> - <#if ownerParties?has_content> >> - <#list ownerParties as party> >> - <option value='${party.partyId?if_exists}' <#if >> facility.ownerPartyId?exists && party.partyId = >> facility.ownerPartyId>selected</#if>>${Static['org.ofbiz.party.party.PartyHelper'].getPartyName(party)} >> (${party.partyId})</option> >> - </#list> >> - </#if> >> - </select> >> + <input type="text" class="inputBox" name="ownerPartyId" >> value="${facility.ownerPartyId?if_exists}"/> >> + >> + >> javascript:call_fieldlookup2(document.EditFacilityForm.ownerPartyId,'LookupPartyName'); >> + "<@ofbizContentUrl >> /images/fieldlookup.gif"</@ofbizContentUrl>" width="15" height="14" >> border="0" alt="Click here For Field Lookup"/> >> + >> + >> </td> >> </tr> >> <tr> >> >> >> >> > |
Free forum by Nabble | Edit this page |