OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5356ff1
)
Model::Stories: check introtext exists in create method
author
hylom
<hylom@users.sourceforge.jp>
Thu, 19 Jan 2017 12:29:15 +0000
(21:29 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Thu, 19 Jan 2017 12:29:15 +0000
(21:29 +0900)
src/newslash_web/lib/Newslash/Model/Stories.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Model/Stories.pm
b/src/newslash_web/lib/Newslash/Model/Stories.pm
index
ea23f27
..
92f9353
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Model/Stories.pm
+++ b/
src/newslash_web/lib/Newslash/Model/Stories.pm
@@
-290,7
+290,7
@@
sub create {
# check parameters
my $msg = "";
$msg = "no title" if !$params->{title};
- $msg = "no
title" if !$params->{title
};
+ $msg = "no
introtext" if !$params->{introtext
};
$msg = "no uid" if !$params->{uid};
$msg = "no topics" if !defined $params->{topics_chosen};