Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download categories in e_upload.php file #3201

Closed
Jimmi08 opened this issue Jun 20, 2018 · 1 comment
Closed

download categories in e_upload.php file #3201

Jimmi08 opened this issue Jun 20, 2018 · 1 comment
Labels
plugin: download type: bug A problem that should not be happening
Milestone

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Jun 20, 2018

I have tree of download categories:
image

But upload categories display just this:

image

My USER_CLASS_LIST is 253,254,250,251,0

file e_upload.php in download plugin:

This is correct:
$qry = "SELECT download_category_id,download_category_name,download_category_parent FROM #download_category WHERE download_category_class IN (".USERCLASS_LIST.") ORDER BY download_category_order, download_category_parent";

retrieve() is correct
compile() looks correct too (all 8 records in tree)

but this code returs only 3 records:

  	foreach($ret as $k=>$v)
	    {
	        $id = $v['download_category_name'];
	        foreach($v['download_category_sub'] as $row)
	        {
	            $id2 = $row['download_category_name'];
		        $arr[$id] = array('download__'.$row['download_category_id']=>$id2);
	            if(!empty($row['download_category_sub']))
	            {
					foreach($row['download_category_sub'] as $key=>$val)
					{
						$subid = $val['download_category_name'];
						$arr[$id][$subid] = array('download__'.$val['download_category_id']=>$subid);
					}
	            }

	        }

	    }
@Jimmi08
Copy link
Contributor Author

Jimmi08 commented Jun 21, 2018

#3152

@Moc Moc added type: bug A problem that should not be happening plugin: download labels Jun 23, 2018
@CaMer0n CaMer0n added this to the e107 2.2.0 milestone Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: download type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

3 participants