[ 
http://mifosforge.jira.com/browse/MIFOS-2660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57526#action_57526
 ] 

Mohit Mishra commented on MIFOS-2660:
-------------------------------------

The problem is in "loanCreationDetails.jsp". What happens is, in 
LoanAccountAction.java, these is a method called 
handleRepaymentsIndependentOfMeetingIfConfigured which checks for 
configService.isRepaymentIndepOfMeetingEnabled(). If and only if this is true, 
then "REPAYMENT_SCHEDULES_INDEPENDENT_OF_MEETING_IS_ENABLED" is set into the 
session as an attribute and value is given as 1 for this session attribute.

Now if u check loanCreationDetail.jsp --> line 349

<c:if
                                                                        
test="${repaymentSchedulesIndependentOfMeetingIsEnabled == '1'}">

if and only if this condition is true, the radio button having id as 
"frequency" is created on the page. At the end of this jsp there is a script 
tag like this 
<script>
showMeetingFrequency();

So whenever the page loads , this script executes and it looks for an element 
which has id = 'frequency' (as written in showMeetingFrequency() function.), 
which is not available as the value of property 
repaymentSchedulesIndependentOfMeetingIsEnabled  is not equal to 1, and hence 
not available, due to which it throws a JavaScript error saying the element is 
null or not an object.
</script>


> Form error on Create Loan Account page
> --------------------------------------
>
>                 Key: MIFOS-2660
>                 URL: http://mifosforge.jira.com/browse/MIFOS-2660
>             Project: mifos
>          Issue Type: Bug
>          Components: Loan Account
>    Affects Versions: Release 1.4
>         Environment: Internet Explorer 6.0
>            Reporter: Ingrid Kelfkens
>            Assignee: Mohit Mishra
>            Priority: Trivial
>             Fix For: Unscheduled
>
>         Attachments: error_on_page.PNG, java_error.png
>
>
> Clients & Accounts > Create Loans Account:
> I did a search on a Borrower / Group Name and then selected a Loans instance 
> name from the dropdown on the following page and clicked Continue.
> The page I landed on has this error:
> Line 101:
> Error: 'document.loanAccountActionForm.frequency.1' is null or not an object'
> See attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues

Reply via email to