|
From: <ix...@us...> - 2001-12-19 05:32:38
|
ixjonez 01/12/18 21:32:37
Modified: lib/LiveFrame/Lab Tag: @Ô `¶@h¶@h¶@ ¸ x¶@x¶@Ày
Ày ° ° ¶@¶@¶@¶@ ¶@ ¶@¨¶@¨¶@x x
¸¶@¸¶@À¶@À¶@ȶ@ȶ@P« P« ȹ ¯
à¶@à¶@è¶@è¶@ð¶@ð¶@ø¶@ø¶@
/tmp/cvs-serv8512/lab/lib/LiveFrame/Lab/SpecForm.pm
No tag SpecForm.pm
Log:
make gallery position a required form field
Revision Changes Path
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
1.2 +8 -2 lab/lib/LiveFrame/Lab/SpecForm.pm
Index: /tmp/cvs-serv8512/lab/lib/LiveFrame/Lab/SpecForm.pm
===================================================================
RCS file: /cvsroot/liveframe/lab/lib/LiveFrame/Lab/SpecForm.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /tmp/cvs-serv8512/lab/lib/LiveFrame/Lab/SpecForm.pm 2001/12/02 12:48:11 1.1
+++ /tmp/cvs-serv8512/lab/lib/LiveFrame/Lab/SpecForm.pm 2001/12/19 05:32:37 1.2
@@ -83,9 +83,15 @@
sub validate {
my ($self, $lab) = @_;
- unless ($self->gallery_dir()) {
+ my $gallery_dir = $self->gallery_dir();
+ my $gallery_position = $self->gallery_position();
+
+ unless (defined $gallery_dir && defined $gallery_position) {
my $errors = LiveFrame::Errors->new();
- $errors->add_error('gallery directory not specified');
+ $errors->add_error('gallery directory not specified') unless
+ defined $gallery_dir;
+ $errors->add_error('gallery position not specified') unless
+ defined $gallery_position;
die $errors;
}
No revision
No revision
1.2 +8 -2 lab/lib/LiveFrame/Lab/SpecForm.pm
Index: SpecForm.pm
===================================================================
RCS file: /cvsroot/liveframe/lab/lib/LiveFrame/Lab/SpecForm.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SpecForm.pm 2001/12/02 12:48:11 1.1
+++ SpecForm.pm 2001/12/19 05:32:37 1.2
@@ -83,9 +83,15 @@
sub validate {
my ($self, $lab) = @_;
- unless ($self->gallery_dir()) {
+ my $gallery_dir = $self->gallery_dir();
+ my $gallery_position = $self->gallery_position();
+
+ unless (defined $gallery_dir && defined $gallery_position) {
my $errors = LiveFrame::Errors->new();
- $errors->add_error('gallery directory not specified');
+ $errors->add_error('gallery directory not specified') unless
+ defined $gallery_dir;
+ $errors->add_error('gallery position not specified') unless
+ defined $gallery_position;
die $errors;
}
|