[vhffs-dev] [2225] fixed Bazaar creation, modify sub should accept being called while object is in waiting for create state |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [2225] fixed Bazaar creation, modify sub should accept being called while object is in waiting for create state
- From: subversion@xxxxxxxxxxxxx
- Date: Thu, 17 Jan 2013 23:16:54 +0100
Revision: 2225
Author: gradator
Date: 2013-01-17 23:16:54 +0100 (Thu, 17 Jan 2013)
Log Message:
-----------
fixed Bazaar creation, modify sub should accept being called while object is in waiting for create state
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm
Modified: trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm 2013-01-17 21:05:35 UTC (rev 2224)
+++ trunk/vhffs-api/src/Vhffs/Robots/Bazaar.pm 2013-01-17 22:16:54 UTC (rev 2225)
@@ -127,7 +127,7 @@
sub modify {
my $bazaar = shift;
- return undef unless defined $bazaar and $bazaar->get_status == Vhffs::Constants::WAITING_FOR_MODIFICATION;
+ return undef unless defined $bazaar and ( $bazaar->get_status == Vhffs::Constants::WAITING_FOR_MODIFICATION or $bazaar->get_status == Vhffs::Constants::WAITING_FOR_CREATION );
my $vhffs = $bazaar->get_vhffs;
my $dir = $bazaar->get_dir;