Jump to content


fapth

Member Since 24 Sep 2016
Offline Last Active Jan 10 2018 10:13 AM
-----

Topics I've Started

set_relation_n_n is bugged when 5. parameter is a array

05 January 2018 - 10:34 AM

I got a problem, i need to put the relation in an_array. But when the 5. parameter was any time in an array, I got below problem:

Severity: Notice
Message: Undefined property: stdClass::$ users_id
Filename: models/Grocery_crud_model.php
Line Number: 345
Backtrace:
File: /var/www/na_project/application/models/Grocery_crud_model.php
Line: 345
Function: _error_handler
File: /var/www/na_project/application/libraries/Grocery_CRUD.php
Line: 1387
Function: get_relation_n_n_selection_array
File: /var/www/na_project/application/libraries/Grocery_CRUD.php
Line: 1378
Function: get_relation_n_n_selection_array
File: /var/www/na_project/application/libraries/Grocery_CRUD.php
Line: 1885
Function: get_edit_values
File: /var/www/na_project/application/libraries/Grocery_CRUD.php
Line: 4575
Function: showEditForm
File: /var/www/na_project/application/controllers/licenses.php
Line: 74
Function: render
File: /var/www/na_project/index.php
Line: 315
Function: require_once

This is my code

foreach($relations_n as $relation_n){
$rel = explode(',' ,$relation_n['relation_n_n']);
$crud->set_relation_n_n($rel[0],$rel[1],$rel[2],$rel[3],$rel[4],$rel[5],$rel[6]);
}

This is inside of $relations_n 

Lizenznehmer, licenses_to_user, users, license_id, users_id, username,priority

When im doing this: 

foreach($relations_n as $relation_n){
$rel = explode(',' ,$relation_n['relation_n_n']);
$crud->set_relation_n_n($rel[0],$rel[1],$rel[2],$rel[3],'users_id',$rel[5],$rel[6]);
}

Its working perfect.

 

Does some have any solutions for me or a work around?

 

sincerly

fapth


Issues with Bootstrap Theme

17 April 2017 - 08:39 AM

Hello together,

 

after installing the Bootstrap Theme I got some big Issues:

 

1. "Update and go back to list" is without any functionality. U can click on it, but nothing happends.

2. "Update Changes" brings me to an other side, where this appears to me:

{"success":true,"insert_primary_key":true,"success_message":"
Daten wurden erfolgreich aktualisiert. Gehe zur\u00fcck zur Liste<\/a><\/p>","success_list_url":"http:\/\/localhost\/test\/index.php\/jobs\/index\/success\/1"}

When is start firebug on this page "http://localhost/tes...bs/index/edit/1" I got following Error Message:

common.min.js:1 Uncaught ReferenceError: CacheLibrary is not defined
    at HTMLDocument.<anonymous> (common.min.js:1)
    at j (jquery-1.11.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js:2)
    at Function.ready (jquery-1.11.1.min.js:2)
    at HTMLDocument.J (jquery-1.11.1.min.js:2)

this is my template

<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
<?php 
foreach($css_files as $file): ?>
    <link type="text/css" rel="stylesheet" href="<?php echo $file; ?>" />
 
<?php endforeach; ?>
<?php foreach($js_files as $file): ?>
 
    <script src="<?php echo $file; ?>"></script>
<?php endforeach; ?>
 

</head>
<body>
<!-- Beginning header -->
    <div>
        <a href='<?php echo site_url('page1')?>'>page1</a> | 
        <a href=''>Platzhalter</a>

 
    </div>
<!-- End of header-->
    <div style='height:20px;'></div>  
    <div>
<?php echo $output; ?>
 
    </div>
<!-- Beginning footer -->
<div> Copyright </div>
<!-- End of Footer -->
</body>
</html>

Can u help me out with that?