Bug 15774: Add additional fields to order baskets
[koha.git] / C4 / Creators / Profile.pm
index 6b6e192..37512fa 100644 (file)
@@ -7,11 +7,8 @@ use autouse 'Data::Dumper' => qw(Dumper);
 
 use C4::Context;
 use C4::Debug;
-use C4::Creators::Lib 1.000000 qw(get_unit_values);
+use C4::Creators::Lib qw(get_unit_values);
 
-BEGIN {
-    use version; our $VERSION = qv('1.0.0_1');
-}
 
 sub _check_params {
     my $given_params = {};
@@ -110,8 +107,8 @@ sub delete {
         push @params, $opts{'profile_id'}, $opts{'creator'};
     }
     if (scalar(@params) < 2) {   # If there is no profile id or creator type then we cannot delete it
-        warn sprintf('%s : Cannot delete profile as the profile id is invalid or non-existant.', $call_type) if !$params[0];
-        warn sprintf('%s : Cannot delete profile as the creator type is invalid or non-existant.', $call_type) if !$params[1];
+        warn sprintf('%s : Cannot delete profile as the profile id is invalid or non-existent.', $call_type) if !$params[0];
+        warn sprintf('%s : Cannot delete profile as the creator type is invalid or non-existent.', $call_type) if !$params[1];
         return -1;
     }
     my $query = "DELETE FROM printers_profile WHERE profile_id = ? AND creator = ?";