oliveiraped / Reportula

Reportula is a php based web program that provides you a summarized output stats of Bacula Backups jobs, clients, volumes and director that have already run. It obtains its information from your catalog database. This is a fairly high level bacula management tool. Here are a few points that one user made concerning this important tool. It is web-based so can be accessed from anywhere. It packs a phenomenal amount of information into a single web-page – that I credit as being very good design! Features Display last jobs status Display volumes usage by pool Full supported MySQL, PostgreSQL databases. Show Jobs which executed with errors last day, week, month Show a condition of your Volumes Show terminated Jobs Search Jobs on several conditions The detailed information on Pools, Volumes, Storages and Clients Search options List the files stored on job Acl Supports and Login users support Integration with Active Directory or Ldap servers
http://www.reportula.org
GNU General Public License v3.0
25 stars 9 forks source link

Adding includes or excludes to fileset fails #17

Closed scambra closed 10 years ago

scambra commented 10 years ago

I can't add includes or excludes with 2.0.10, using postgres

To fix this, I changed $fileset(in|ex)clude->file to $fileset(in|ex)clude->File:

diff --git a/app/controllers/admin/ConfiguratorController.php b/app/controllers/admin/ConfiguratorController.php
index 2fa3527..2ac55fa 100755
--- a/app/controllers/admin/ConfiguratorController.php
+++ b/app/controllers/admin/ConfiguratorController.php
@@ -678,7 +678,7 @@ class ConfiguratorController extends BaseController
     {
         $filesetexclude = new  Cfgfilesetexclude;
         $filesetexclude->idfileset = Input::get('id','');;
-        $filesetexclude->file      = Input::get('path','');
+        $filesetexclude->File      = Input::get('path','');
         $filesetexclude->save();
         return json_encode(true);

@@ -755,7 +755,7 @@ class ConfiguratorController extends BaseController
     {
         $filesetinclude = new  Cfgfilesetinclude;
         $filesetinclude->idfileset = Input::get('id','');;
-        $filesetinclude->file      = Input::get('path','');
+        $filesetinclude->File      = Input::get('path','');
         $filesetinclude->save();
         return json_encode(true);
     }
oliveiraped commented 10 years ago

Sorry, it missed on line 310 app/admin/installController.php, you just need to change lines 315, 320 from $table->string('File')->nullable(); to $table->string('file')->nullable();

I will change the installController.php file on next release .

scambra commented 10 years ago

Thanks, I have renamed column in postgres and it's working now, but getting excludes and includes now fails. I will submit another PR