Lines 17-23
Link Here
|
17 |
public $reason; |
17 |
public $reason; |
18 |
|
18 |
|
19 |
public $nominate_search_fields; |
19 |
public $nominate_search_fields; |
20 |
public $submit_iplog_fields; |
|
|
21 |
|
20 |
|
22 |
public $website_url; |
21 |
public $website_url; |
23 |
public $wiki_url; |
22 |
public $wiki_url; |
Lines 68-78
Link Here
|
68 |
"to read and understand thus you should not use ephemeral urls (such as bugzilla queries); please ". |
67 |
"to read and understand thus you should not use ephemeral urls (such as bugzilla queries); please ". |
69 |
"use fixed urls to newsgroups, mailing lists, and bugs (or bug NNN or [NNN]). " ,'check'=>'req noquery') |
68 |
"use fixed urls to newsgroups, mailing lists, and bugs (or bug NNN or [NNN]). " ,'check'=>'req noquery') |
70 |
); |
69 |
); |
71 |
$this->submit_iplog_fields = array ( |
|
|
72 |
'projectid' => array( 'key' => 'projectid', 'type' => 'hidden' ), |
73 |
array( 'key' => 'reason', 'label' => 'Reason (incl project release number)', |
74 |
'type' => 'textarea', 'check' => 'req' ) |
75 |
); |
76 |
// $this->initialize_cq_fields(); |
70 |
// $this->initialize_cq_fields(); |
77 |
|
71 |
|
78 |
$this->nominate_search_fields = array( |
72 |
$this->nominate_search_fields = array( |
Lines 195-206
Link Here
|
195 |
<li> |
189 |
<li> |
196 |
<a href="<?= $this->context->getActionLink("manage", $this) ?>">[manage]</a> |
190 |
<a href="<?= $this->context->getActionLink("manage", $this) ?>">[manage]</a> |
197 |
inactive committers on the project |
191 |
inactive committers on the project |
198 |
<?php if( isset($_GET['iplogurl']) ) { ?> |
|
|
199 |
<li> |
192 |
<li> |
200 |
<a href="<?= $this->context->getActionLink("submitip", $this, $_GET['iplogurl']) ?>">[submit]</a> |
193 |
<a href="<?= $this->context->getActionLink("submitip", $this) ?>">[submit]</a> |
201 |
ip log to Eclipse Legal for release review |
194 |
ip log to Eclipse Legal for release review |
202 |
<?php |
|
|
203 |
} ?> |
204 |
</ul> |
195 |
</ul> |
205 |
<br/> |
196 |
<br/> |
206 |
<?php |
197 |
<?php |
Lines 212-240
Link Here
|
212 |
} |
203 |
} |
213 |
|
204 |
|
214 |
/* SUBMIT IP LOG ------------------------------------------------------------------------------ */ |
205 |
/* SUBMIT IP LOG ------------------------------------------------------------------------------ */ |
215 |
public function submitip_action( $context, $param ) { |
206 |
public function submitip_action() { |
216 |
$this->margin_action_html('back'); |
207 |
$clzname = 'ipzilla'; |
217 |
echo "<b>Submit IP Log to Eclipse Legal</b><br> |
208 |
require_once( $GLOBALS['COMPONENTS_DIRECTORY'] . "portal/$clzname/factory.php" ); |
218 |
Submit the current |
209 |
$factoryName = $clzname."_Factory"; |
219 |
<a href='http://www.eclipse.org/projects/ip_log.php?projectid=$param' target=_new>automatic IP log</a> |
210 |
$factory = new $factoryName(); |
220 |
for project<?= strpos($param,',') !== false ? 's' : '' ?> <u>$param</u> to Eclipse Legal. |
211 |
$object = $factory->getObjectForId('submit_ip_log', $this->projectid, $this->context); |
221 |
Legal will respond by email, either with additional questions, or with approval |
212 |
$this->signal_replace_component($object); |
222 |
to hold the Release Review. |
|
|
223 |
"; |
224 |
$this->html_edit_fields($this->submit_iplog_fields, 'submit'); |
225 |
} |
226 |
|
227 |
public function submit_action() { |
228 |
$errors = $this->html_save_fields($this->submit_iplog_fields); |
229 |
if( $errors ) { |
230 |
$this->submitip_action( $this->context, $this->projectid ); |
231 |
} else { |
232 |
send_immediate_email ( $this->context, "portal/project_committer", "send_iplog_to_legal", |
233 |
$this->context->theuser->user_email_name(), $this->projectid, $this->reason, null ); |
234 |
|
235 |
$this->margin_action_html('back'); |
236 |
echo "The IP Log has been submitted to Eclipse Legal."; |
237 |
} |
238 |
} |
213 |
} |
239 |
|
214 |
|
240 |
/* NOMINATE COMMITTERS ------------------------------------------------------------------------------ */ |
215 |
/* NOMINATE COMMITTERS ------------------------------------------------------------------------------ */ |