Skip to content

Commit

Permalink
Merge branch 'i322-jobnotificationcopy-1.3' into release-1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Jun 3, 2011
2 parents e44389e + 65c94b0 commit 2ec51f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rundeckapp/grails-app/domain/ScheduledExecution.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ class ScheduledExecution extends ExecutionContext {
}

def Notification findNotification(String trigger, String type){
if(this.id){
if(this.notifications){
return this.notifications.find{it.eventTrigger==trigger && it.type==type}
}else{
return null
Expand Down
8 changes: 4 additions & 4 deletions rundeckapp/grails-app/views/scheduledExecution/_edit.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -501,14 +501,14 @@ var applinks={
</tr>
</tbody>
<tbody class="savedJobFields" style="${wdgt.styleVisible(if:wasSaved)}" >
<g:set var="defSuccess" value="${scheduledExecution.id?scheduledExecution.findNotification('onsuccess','email'):null}"/>
<g:set var="defSuccess" value="${scheduledExecution.findNotification('onsuccess','email')}"/>
<g:set var="isSuccess" value="${params.notifySuccessRecipients && 'true'==params.notifyOnsuccess || defSuccess}"/>
<g:set var="defSuccessUrl" value="${scheduledExecution.id?scheduledExecution.findNotification('onsuccess','url'):null}"/>
<g:set var="defSuccessUrl" value="${scheduledExecution.findNotification('onsuccess','url')}"/>
<g:set var="isSuccessUrl" value="${params.notifySuccessUrl && 'true'==params.notifyOnsuccessUrl || defSuccessUrl}"/>

<g:set var="defFailure" value="${scheduledExecution.id?scheduledExecution.findNotification('onfailure','email'):null}"/>
<g:set var="defFailure" value="${scheduledExecution.findNotification('onfailure','email')}"/>
<g:set var="isFailure" value="${params.notifyFailureRecipients && 'true'==params.notifyOnfailure || defFailure}"/>
<g:set var="defFailureUrl" value="${scheduledExecution.id?scheduledExecution.findNotification('onfailure','url'):null}"/>
<g:set var="defFailureUrl" value="${scheduledExecution.findNotification('onfailure','url')}"/>
<g:set var="isFailureUrl" value="${params.notifyFailureUrl && 'true'==params.notifyOnfailureUrl || defFailureUrl}"/>
<tr>
<td>
Expand Down

0 comments on commit 2ec51f5

Please sign in to comment.