Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
pdf-customizer
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
21bc309b
authored
2016-09-15 20:33:30 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ww
1 parent
9c61715e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
app/Http/Controllers/GoogledriveuploadpdfController.php
app/pdfModel.php
app/Http/Controllers/GoogledriveuploadpdfController.php
View file @
21bc309
...
...
@@ -113,7 +113,7 @@ public function isGoogleFolderCreated($cust_id)
$newgroup_id
=
$this
->
createFolderGoogle
(
$cust_ids
);
$saveFolderId
=
new
pdfModel
();
$saveFolderId
=
$saveFolderId
->
checkIsGoogleFolderCreated
(
$newgroup_id
);
$saveFolderId
=
$saveFolderId
->
checkIsGoogleFolderCreated
(
$newgroup_id
[
0
]
->
group_id
);
return
$saveFolderId
;
}
else
{
...
...
app/pdfModel.php
View file @
21bc309
...
...
@@ -41,8 +41,9 @@ class pdfModel extends Model
$folderId
=
DB
::
table
(
'googleFolderIds'
)
->
insertGetId
(
array
(
'group_id'
=>
$group_id
,
'folder_id'
=>
$folderId
,
'subfolder_id'
=>
$createdFile
)
);
$rows
=
DB
::
table
(
'googleFolderIds'
)
->
select
(
'*'
)
->
where
(
'googleFolderIds.id'
,
'='
,
$folderId
)
->
get
();
return
$
folderId
;
return
$
rows
;
}
...
...
Please
register
or
sign in
to post a comment