Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Commit

Permalink
Don't let empty comments through
Browse files Browse the repository at this point in the history
  • Loading branch information
systemed committed Apr 3, 2011
1 parent 79dab26 commit 7f8cda0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/systemeD/potlatch2/save/SaveDialog.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<mx:Object k="created_by" v="Potlatch 2"/>
<mx:Object k="version" v="{Application.application.version}"/>
<mx:Object k="build" v="{Application.application.build_number}"/>
<mx:Object k="comment" v=""/>
</mx:ArrayCollection>

<mx:ViewStack id="processSequence" width="100%" height="100%"
Expand Down Expand Up @@ -104,7 +103,7 @@
for (var i:int=changesetTags.length-1; i>0; i--) {
if (changesetTags[i]['k']=='comment') { changesetTags.removeItemAt(i); }
}
changesetTags.addItem( { k:'comment', v: event.target.text } );
if (event.target.text!='') changesetTags.addItem( { k:'comment', v: event.target.text } );
}
private function monitorEnter(event:TextEvent):void {
Expand Down

0 comments on commit 7f8cda0

Please sign in to comment.